<?php
$this->widget('ext.extended.GridView', array(
    'id' => 'grid',
    'dataProvider' => $dataProvider,
    'filter' => $model,
    'rowHtmlOptionsExpression'=>'
        $data->defaultWidth=200;
        $data->defaultHeight=200;
    ',
    'dropDowns' => array(
        'pageSize' => array(
            'label' => 'Results per page',
            'dropDownVar' => 'pageSize_',
            'cssClass'=>'page-size',
            'default' => 10,
            'items' => array(
                10 => 10,
                20 => 20,
                50 => 50,
                80 => 80,
                100 => 100,
            ),
        ),
    ),
    'columns' => array(
        array(
            'name' => 'id_',
            'value' => '$data->id',
            'htmlOptions' => array(
                'style' => 'width:50px;',
            ),
        ),
        array(
            'filter' => false,
            'value'=>array($this, 'gridThumbnail'),
            'htmlOptions' => array(
                'class' => 'grid-image',
                'style' => 'width:80px;',
            ),
        ),
        array(
            'name' => 'type_',
            'value' => '$data->type',
            'htmlOptions' => array(
                'style' => 'width:80px;',
            ),
        ),
        array(
            'name' => 'title_',
            'value' => '$data->title',
        ),
        array(
            'header' => 'Publish',
            'type' => 'boolean',
            'value' => '$data->isPublish',
            'htmlOptions'=>array(
                'style'=>'width:50px; text-align:center;',
            ),
        ),
        array(
            'class' => 'CButtonColumn',
            'buttons'=>array(
                'view'=>array(
                    'url'=>'$data->url',
                ),
            ),
        ),
        array(
            'class' => 'CCheckBoxColumn',
            'selectableRows' => 2,
        ),
    ),
));
?>